'use strict';
 
module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    const UserSchema = new Schema({
        name: {type: String, required: true,unique:true},
        password: {type: String,required: true,},
        phone: {type: String,required: true,},
        intrest: {type: String,required: true,},
    });
    return mongoose.model("User", UserSchema); 
}
